CanvasOperationFillTextAligned
Type
statement
Summary
Render filled text on a canvas.
Syntax
fill text <mText> at <mAlignment> of <mRect> on <mCanvas>
Description
Renders mText aligned to the specified sides of mRect on mCanvas using the current font setting.
Parameters
Name | Type | Description |
---|---|---|
mCanvas | An expression which evaluates to a canvas. | |
mText | An expression which evaluates to a string. | |
mRect | An expression which evaluates to a rectangle. |
Examples
// Set the canvas font
set the font of this canvas to font "Helvetica"
// Draw the text in the top-left corner of the target rectangle
fill text "Widget Label" at top left of rectangle [50, 100, 250, 200] on this canvas